home *** CD-ROM | disk | FTP | other *** search
/ PC World Komputer 2010 April / PCWorld0410.iso / hity wydania / Ubuntu 9.10 PL / karmelkowy-koliberek-desktop-9.10-i386-PL.iso / casper / filesystem.squashfs / usr / share / checkbox / patches / 0.1-ubuntu14 < prev    next >
Text File  |  2009-11-05  |  1KB  |  41 lines

  1. #!/bin/sh
  2.  
  3. config_file="/etc/checkbox.d/$1.ini"
  4.  
  5. sed -i 's|checkbox_directory|checkbox_share|' $config_file
  6.  
  7. if [ "$1" = "checkbox" ]; then
  8.     temp_file=`tempfile -m 0644 -p $1`
  9.  
  10.     awk '{print}; /^directories.*plugins$/ { print "persist_filename = %(checkbox_data)s/plugins.bpickle" }' < $config_file > $temp_file
  11.     mv -f $temp_file $config_file
  12.  
  13.     sed -i 's/cache_file.*submission.xml/filename = %(checkbox_data)s\/submission.xml/' $config_file
  14.     cat <<'EOF' >>$config_file
  15. [checkbox/registries/gconf]
  16. directory = /home
  17. source = %(directory)s/$user/.gconf
  18. command = gconftool-2 -R / --config-source xml:readwrite:%(source)s
  19.  
  20. [checkbox/registries/hw]
  21. command = lshw -numeric 2>/dev/null
  22. version = lshw -version 2>/dev/null
  23.  
  24. [checkbox/plugins/disk_info]
  25. filename = /var/log/installer/casper.log
  26.  
  27. [checkbox/plugins/lock_prompt]
  28. filename = %(checkbox_data)s/lock
  29.  
  30. [checkbox/plugins/packages_info]
  31. max_per_request = 100
  32.  
  33. [checkbox/plugins/results_info]
  34. max_per_request = 20
  35.  
  36. [checkbox/plugins/test_prompt]
  37. plugin_priorities = manual
  38.  
  39. EOF
  40. fi
  41.